/**
  * Author: Jordi Vilaplana Mayoral <jvilaplana@alumnes.udl.cat>
  * Date: 05/04/2011
  * 
  * LocationManager
  * Copyright (C) 2011 Jordi Vilaplana Mayoral
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  * 
  * @(#)
  * Description: This program allows users to book rooms and schedule activities
  */

package locmanager.beans;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Activity Model Object.
 * 
 * @author Jordi Vilaplana Mayoral <jvilaplana@alumnes.udl.cat>
 * @version 1.0
 */
public class ActivityBean {

  private int activityId;
  private String publicName;
  private int managerId;
  private int locationId;
  private int duration;
  private int maxStudents;
  private Date startDate;
  private List<EquipmentBean> equipments;

  /**
   * Default constructor.
   */
  public ActivityBean() {
    this.activityId = -1;
    this.publicName = null;
    this.managerId = -1;
    this.locationId = -1;
    this.duration = -1;
    this.maxStudents = -1;
    this.startDate = null;
    this.equipments = new ArrayList<EquipmentBean>();
  }

  /**
   * Class constructor.
   * 
   * @param activityId
   * @param publicName
   * @param managerId
   * @param locationId
   * @param duration
   * @param maxStudents
   * @param startDate
   * @param equipments 
   */
  public ActivityBean(int activityId, String publicName, int managerId, int locationId, int duration, int maxStudents, Date startDate, List<EquipmentBean> equipments) {
    this.activityId = activityId;
    this.publicName = publicName;
    this.managerId = managerId;
    this.locationId = locationId;
    this.duration = duration;
    this.maxStudents = maxStudents;
    this.startDate = startDate;
    this.equipments = equipments;
  }

  /**
   * Getter for the activityId parameter.
   * 
   * @return activityId
   */
  public int getActivityId() {
    return activityId;
  }

  /**
   * Setter for the activityId parameter.
   * 
   * @param activityId
   */
  public void setActivityId(int activityId) {
    this.activityId = activityId;
  }

  /**
   * 
   * @return 
   */
  public int getDuration() {
    return duration;
  }

  /**
   * 
   * @param duration 
   */
  public void setDuration(int duration) {
    this.duration = duration;
  }

  /**
   * 
   * @return 
   */
  public int getLocationId() {
    return locationId;
  }

  /**
   * 
   * @param locationId 
   */
  public void setLocationId(int locationId) {
    this.locationId = locationId;
  }

  /**
   * 
   * @return 
   */
  public int getManagerId() {
    return managerId;
  }

  /**
   * 
   * @param managerId 
   */
  public void setManagerId(int managerId) {
    this.managerId = managerId;
  }

  /**
   * 
   * @return 
   */
  public int getMaxStudents() {
    return maxStudents;
  }

  /**
   * 
   * @param maxStudents 
   */
  public void setMaxStudents(int maxStudents) {
    this.maxStudents = maxStudents;
  }

  /**
   * 
   * @return 
   */
  public String getPublicName() {
    return publicName;
  }

  /**
   * 
   * @param publicName 
   */
  public void setPublicName(String publicName) {
    this.publicName = publicName;
  }

  /**
   * 
   * @return 
   */
  public Date getStartDate() {
    return startDate;
  }

  /**
   * 
   * @param startDate 
   */
  public void setStartDate(Date startDate) {
    this.startDate = startDate;
  }

  /**
   * 
   * @return 
   */
  public List<EquipmentBean> getEquipments() {
    return equipments;
  }

  /**
   * 
   * @param equipments 
   */
  public void setEquipments(List<EquipmentBean> equipments) {
    this.equipments = equipments;
  }

}
